/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package edu.wpi.first.wpilibj.templates;

import edu.wpi.first.wpilibj.SpeedController;

/**
 * testing methods for robot parts
 * @author robert
 */
public class PhoenixTesting {
    PhoenixDrive drive;
    PhoenixControls controls;
    PhoenixSensors sensors;
    PhoenixLifter lifter;
    PhoenixArm arm;
    PhoenixBcd autonomousSwitch;
    PhoenixAutonomous autonomous;

    /**
     * standard testing constructor
     * @param drive robot drive
     * @param controls robot controls
     * @param sensors robot sensors
     * @param lifter robot lifter
     * @param autonomousSwitch autonomous switch
     * @param autonomous autonomous
     */
    public PhoenixTesting (PhoenixDrive drive, PhoenixControls controls,
            PhoenixSensors sensors, PhoenixLifter lifter, PhoenixArm arm,
            PhoenixBcd autonomousSwitch, PhoenixAutonomous autonomous) {
        this.drive = drive;
        this.controls = controls;
        this.sensors = sensors;
        this.lifter = lifter;
        this.arm = arm;
        this.autonomousSwitch = autonomousSwitch;
        this.autonomous = autonomous;
    }

    /**
     * test drive motors
     * @param motor motor to test
     */
    public void motor(SpeedController motor) {
        motor.set(1);
    }
}
